<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta charset="utf-8"/>
    <title>激想运动专营店上海分店</title>
    <meta name="description" content="overview &amp; stats"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="../../assets/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../../assets/font-awesome/4.5.0/css/font-awesome.min.css"/>
    <!-- page specific plugin styles -->
    <link rel="stylesheet" href="../../assets/css/jquery-ui.min.css"/>
    <link rel="stylesheet" href="../../assets/css/bootstrap-datepicker3.min.css"/>
    <link rel="stylesheet" href="../../assets/css/ui.jqgrid.min.css"/>
    <link rel="stylesheet" href="../../assets/css/bootstrap-timepicker.min.css"/>
    <link rel="stylesheet" href="../../assets/css/daterangepicker.min.css"/>
    <link rel="stylesheet" href="../../assets/css/bootstrap-datetimepicker.min.css"/>
    <link rel="stylesheet" href="../../assets/css/bootstrap-colorpicker.min.css"/>
    <!--ztree-->
    <link rel="stylesheet" href="../../assets/tools/ztree/css/metroStyle/metroStyle.css" type="text/css">
    <!-- text fonts -->
    <link rel="stylesheet" href="../../assets/css/fonts.googleapis.com.css"/>
    <!-- ace styles -->
    <link rel="stylesheet" href="../../assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style"/>
    <link rel="stylesheet" href="../../assets/css/jquery-ui.min.css"/>
    <link rel="stylesheet" href="../../assets/css/login/member.css">
    <link rel="stylesheet" href="../../assets/css/admin.css">
    <!--<link rel="stylesheet" href="../../assets/css/manager.css" class="ace-main-stylesheet"/>-->
    <!--[if lte IE 9]>
    <link rel="stylesheet" href="../../assets/css/ace-part2.min.css" class="ace-main-stylesheet"/>
    <![endif]-->
    <link rel="stylesheet" href="../../assets/css/ace-skins.min.css"/>
    <link rel="stylesheet" href="../../assets/css/ace-rtl.min.css"/>
    <!--[if lte IE 9]>
    <link rel="stylesheet" href="../../assets/css/ace-ie.min.css"/>
    <![endif]-->

    <!-- inline styles related to this page -->
    <!-- ace settings handler -->
    <script src="../../assets/js/ace-extra.min.js"></script>

    <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->
    <!--[if lte IE 8]>
    <script src="../../assets/js/html5shiv.min.js"></script>
    <script src="../../assets/js/respond.min.js"></script>
    <![endif]-->
</head>
<style>
    .table tbody tr td {
        line-height: 25px;
        background-color: #ffffff;
    }
</style>
<body class="jx-skin no-skin">
<div id="navbar" class="navbar navbar-default ace-save-state ">
    <div class="navbar-container ace-save-state" id="navbar-container">
        <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
            <span class="sr-only">Toggle sidebar</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <div class="navbar-header pull-left">
            <div class="workspace-switcher">
                <a href="javascript:;" type="button" class="workspace-switcher-handler dropdown-toggle"
                   data-toggle="dropdown">
                    <i class="fa fa-bars" aria-hidden="true"></i>
                </a>
                <ul class="dropdown-menu workspace-switcher-view" role="menu">
                    <li><a href="#" style=""> <i class="fa fa-check"
                                                 style=""
                                                 aria-hidden="true"></i>
                        <span style="">激想体育专营店上海分店</span></a>
                    </li>
                    <li><a href="#" style=""> <span style="">激想体育专营店上海分店</span>
                        <span class="ml-10 label label-danger label-white middle">11天试用期</span>
                    </a></li>
                    <li><a href="#" style=""> <span style="">激想体育专营店上海分店</span></a>
                    </li>
                    <li class="divider"></li>

                    <li><a href="#" style=""><i class="fa fa-plus" aria-hidden="true"></i> <span
                            style="">新增店铺</span></a>
                    </li>
                </ul>
            </div>
            <a href="../manager/home.html" class="navbar-brand">
                <small>
                    激想运动专营店上海分店
                </small>
            </a>
        </div>
        <div class="navbar-buttons navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">
                <li class="grey dropdown-modal">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <i class="ace-icon fa fa-bell icon-animated-bell"></i>
                        <span class="badge badge-important">8</span>
                    </a>

                    <ul class="dropdown-menu-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
                        <li class="dropdown-header">
                            <i class="ace-icon fa fa-exclamation-triangle"></i>
                            8 Notifications
                        </li>

                        <li class="dropdown-content">
                            <ul class="dropdown-menu dropdown-navbar navbar-pink">
                                <li>
                                    <a href="#">
                                        <div class="clearfix">
													<span class="pull-left">
														<i class="btn btn-xs no-hover btn-pink fa fa-comment"></i>
														New Comments
													</span>
                                            <span class="pull-right badge badge-info">+12</span>
                                        </div>
                                    </a>
                                </li>

                                <li>
                                    <a href="#">
                                        <i class="btn btn-xs btn-primary fa fa-user"></i>
                                        Bob just signed up as an editor ...
                                    </a>
                                </li>

                                <li>
                                    <a href="#">
                                        <div class="clearfix">
													<span class="pull-left">
														<i class="btn btn-xs no-hover btn-success fa fa-shopping-cart"></i>
														New Orders
													</span>
                                            <span class="pull-right badge badge-success">+8</span>
                                        </div>
                                    </a>
                                </li>

                                <li>
                                    <a href="#">
                                        <div class="clearfix">
													<span class="pull-left">
														<i class="btn btn-xs no-hover btn-info fa fa-twitter"></i>
														Followers
													</span>
                                            <span class="pull-right badge badge-info">+11</span>
                                        </div>
                                    </a>
                                </li>
                            </ul>
                        </li>

                        <li class="dropdown-footer">
                            <a href="#">
                                See all notifications
                                <i class="ace-icon fa fa-arrow-right"></i>
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="grey dropdown-modal">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <img class="nav-user-photo" src="../../assets/images/avatars/user.jpg" alt="Jason's Photo"/>
                        <span class="user-info">
									<small>Welcome,</small>
									Jason
								</span>
                        <i class="ace-icon fa fa-caret-down"></i>
                    </a>
                    <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                        <li>
                            <a href="#">
                                <i class="ace-icon fa fa-cog"></i>
                                设置
                            </a>
                        </li>

                        <li>
                            <a href="../account/accountInfo.html" target="_blank">
                                <i class="ace-icon fa fa-user"></i>
                                账户
                            </a>
                        </li>

                        <li class="divider"></li>

                        <li>
                            <a href="#">
                                <i class="ace-icon fa fa-power-off"></i>
                                退出
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div><!-- /.navbar-container -->
</div>
<div class="main-container ace-save-state" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.loadState('main-container')
        } catch (e) {
        }
    </script>

    <div id="sidebar" class="sidebar responsive  ace-save-state">
        <script type="text/javascript">
            try {
                ace.settings.loadState('sidebar')
            } catch (e) {
            }
        </script>
        <ul class="nav nav-list">
            <li class="">
                <a href="../manager/home.html">
                    <i class="menu-icon  fa fa-home"></i>
                    <span class="menu-text"> 首页 </span>
                </a>
                <b class="arrow"></b>
            </li>
            <li class="">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-desktop"></i>
                    <span class="menu-text">终端管理</span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>
                <b class="arrow"></b>
                <ul class="submenu">
                    <li class="">
                        <a href="../terminalManager/productBrands.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            品牌管理
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a href="../terminalManager/productManager.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            商品管理
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a href="../terminalManager/productCarousels.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            轮播图管理
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>
            <li class="active open">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-file-text-o" aria-hidden="true"></i>
                    <span class="menu-text">订单</span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>
                <b class="arrow"></b>
                <ul class="submenu">
                    <li class="">
                        <a href="../order/orderList.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            订单
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="active">
                        <a href="../order/serviceOrderList.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            退货订单
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>
            <li class="">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-user" aria-hidden="true"></i>
                    <span class="menu-text">员工</span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>
                <b class="arrow"></b>
                <ul class="submenu">
                    <li class="">
                        <a href="../staff/staffInfo.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            员工档案
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>
            <li class="">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-cog" aria-hidden="true"></i>
                    <span class="menu-text">店铺管理</span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>
                <b class="arrow"></b>
                <ul class="submenu">
                    <li class="">
                        <a href="../shop-manager/shopInfo.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            店铺信息
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a href="../shop-manager/privilegeManagement.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            权限设置
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a href="../shop-manager/managerLog.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            店铺日志
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a href="../shop-manager/paymentSetting.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            收款设置
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a href="../shop-manager/shopBalance.html">
                            <i class="menu-icon fa fa-caret-right"></i>
                            店铺余额
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>
            <li class="">
                <a href="../help/help.html" class="dropdown-toggle">
                    <i class="menu-icon fa fa-question-circle"></i>
                    <span class="menu-text">帮助</span>
                </a>
            </li>
        </ul><!-- /.nav-list -->
        <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
            <i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state"
               data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
        </div>
    </div>
    <div class="main-content">
        <div class="main-content-inner">
            <div class="breadcrumbs ace-save-state" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <i class="ace-icon fa fa-home home-icon"></i>
                        <a href="#">首页</a>
                    </li>
                    <li class="active">提交售后申请</li>
                </ul><!-- /.breadcrumb -->
            </div>
            <div class="page-content">
                <div class="page-header">
                    <h1>提交售后申请</h1>
                </div><!-- /.page-header -->
                <div class=content-inner">
                    <!-- PAGE CONTENT BEGINS -->

                    <div class="content-main order-server">
                        <div class="clearfix">
                            <div class="bg-img-warpper"><img
                                    src="http://120.27.148.229:8010/jixiang_b2b_file_rar/20170510094104/UEFA-184/5.jpg"
                                    alt=""></div>
                            <div class="description-warpper">
                                <div class="description">
                                    <p>货 号：UEFA-184</p>
                                    <p>品 牌：UEFA</p>
                                    <p class="goods-title">商品名称：葡萄牙国家队中童短袖T恤
                                    </p>
                                    <p class="mt-10"> 颜色： <span class="sku-primary">统色</span></p>
                                    <p>尺码：110<span class="red=color">(童服码UF)</span></p>
                                    <p>价格：<span>35.000</span></p>
                                    <p>可申请数量：<span class="stocks">4</span></p>
                                </div>
                            </div>
                        </div>
                        <div class="pl-120 applyfrom">
                            <form class="jx-form form form-horizontal" id="form1" method="post">
                                <div class="form-group">
                                    <label for="" class="control-label">申请数量：</label>
                                    <div class="unit-detail-amount-control" id="amount-control">
                                        <div class="input-group">
                                            <span class="input-group-addon minus">-</span>
                                            <input type="text" class="number form-control" id="returnNum"
                                                   name="returnNum" value="1">
                                            <span class="input-group-addon plus">+</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="" class="control-label">售后原因：</label>
                                    <select class=" normal-input" name="returnReason" id="returnReason">
                                        <option value="0">全部</option>
                                        <option value="1">质量问题</option>
                                        <option value="2">颜色/款式/图案与描述不符</option>
                                        <option value="3">假冒品牌</option>
                                        <option value="4">效果不好/不喜欢</option>
                                        <option value="5">材质、面料与商品描述不符</option>
                                        <option value="6">大小尺寸与商品描述不符</option>
                                        <option value="7">卖家发错货</option>
                                        <option value="9">未发货退款</option>
                                        <option value="8">其他</option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label for="" class="control-label">售后类型：</label>
                                    <select class="normal-input" name="returnType" id="service-type">
                                        <option value="0">请选择售后类型</option>
                                        <option value="1">退款</option>
                                        <option value="2">退货</option>
                                    </select>
                                </div>
                                <div class="form-group clearfix" id="upload_images" style="display: none">
                                    <label for="" class="control-label">添加图片：</label>
                                    <input type="file" id="up_img0" style="display:none">
                                    <div id="img0" class="upload_img">
                                        <img src="../../assets/images/upload_img.jpg"/>
                                        <a href="javascript:void(0)" style="display:none"
                                           class="pf-edit-avatar">重新上传</a>
                                    </div>
                                    <div class="table-cell-margin"></div>
                                    <input type="file" id="up_img1" style="display:none">
                                    <div id="img1" class="upload_img">
                                        <img src="../../assets/images/upload_img.jpg"/>
                                        <a href="javascript:void(0)" style="display:none"
                                           class="pf-edit-avatar">重新上传</a>
                                    </div>
                                    <div class="table-cell-margin"></div>
                                    <input type="file" id="up_img2" style="display:none">
                                    <div id="img2" class="upload_img">
                                        <img src="../../assets/images/upload_img.jpg"/>
                                        <a href="javascript:void(0)" style="display:none"
                                           class="pf-edit-avatar">重新上传</a>
                                    </div>
                                </div>
                                <div class="form-group pl-50">
                                    <button class=" btn btn-orange btn-sm " type="button">
                                        提交申请
                                    </button>
                                    <a href="serviceOrderList.html" class="ml-30 btn  btn-grey btn-sm"> 返回 </a>
                                </div>
                            </form>
                        </div>
                    </div>
                    <!-- PAGE CONTENT ENDS -->

                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <div class="footer">
        <div class="footer-inner">
            <div class="footer-content">
                沪ICP备15052275号-2
            </div>
        </div>
    </div>
</div><!-- /.main-container -->

<!-- basic scripts -->
<!--[if !IE]> -->
<script src="../../assets/js/jquery-2.1.4.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="../../assets/js/jquery-1.11.3.min.js"></script>
<![endif]-->
<script type="text/javascript">
    if ('ontouchstart' in document.documentElement) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
</script>
<script src="../../assets/js/bootstrap.min.js"></script>
<!-- page specific plugin scripts -->
<!--[if lte IE 8]>
<script src="../../assets/js/excanvas.min.js"></script>
<![endif]-->
<!-- page specific plugin scripts -->
<script src="../../assets/js/jquery.validate.min.js"></script>
<script src="../../assets/js/jquery-ui.min.js"></script>

<script src="../../assets/js/bootstrap-datepicker.min.js"></script>
<!-- 时间控件 -->
<script src="../../assets/js/moment.min.js"></script>
<script src="../../assets/js/bootstrap-datetimepicker.min.js"></script>
<script src="../../assets/js/bootstrap-datetimepicker.fr.js"></script>

<!-- ace scripts -->
<script src="../../assets/js/jquery.easypiechart.min.js"></script>
<script src="../../assets/js/jquery.sparkline.index.min.js"></script>
<script src="../../assets/js/jquery.flot.min.js"></script>
<script src="../../assets/js/jquery.flot.pie.min.js"></script>
<script src="../../assets/js/jquery.flot.resize.min.js"></script>

<!-- ace scripts -->
<script src="../../assets/js/ace-elements.min.js"></script>
<script src="../../assets/js/ace.min.js"></script>
<script src="../../assets/javascripts/app.js"></script>

<!-- inline scripts related to this page -->
<!-- script start -->
<script type="text/javascript">
    $(function () {
        $("#service-type").change(function () {
            var select = $(this).val();
            if (select == "1") {
                $("#upload_images").css("display", "none");
            } else {
                $("#upload_images").css("display", "block");
            }
            ;
        });
        /* 点击上传图片*/
        $(".upload_img").click(function () {
            var obj = $(this).prev();
            var id = $(this).attr("id");
            obj.change(function () {
                Preview(obj, id);
            }).trigger("click");
        });
        //修改数量
        $("#amount-control").click(function (event) {
            var input = $(this).find(":text");
            //库存数量
            var stocks = $(".stocks").text();
            //为数量输入框添加事件，计算金额小计，并更新总计
            $(input).keyup(function () {
                var val = $(this).val();
                if (!isNaN(val)) {
                    val = parseInt($(input).val());
                }
                if (isNaN(val) || ((/^(\+|-)?\d+$/.test(val)) && val < 1)) {
                    $(this).val("1");
                } else if ((/^(\+|-)?\d+$/.test(val)) && val > stocks) {
                    $(this).val(stocks);

                } else {
                    val = parseInt($(input).val());
                    $(this).val(val);
                }
                ;
            });
            //为数量调整按钮、删除添加单击事件，计算金额小计，并更新总计
            var val = parseInt($(input).val());
            if ($(event.target || window.event.srcElement).hasClass("minus")) {
                if (val > 1) val--;
                input.val(val);
            } else if ($(event.target || window.event.srcElement).hasClass("plus")) {
                if (val < stocks) val++;
                input.val(val);
            }
        });

    });


    function Preview(e, id) {
        var ext = $(e).val().split(".")[1].toUpperCase();
        if (ext != "PNG" && ext != "GIF" && ext != "JPG" && ext != "JPEG") {
            openDialog("图片限于png，gif，jpeg，jpg格式！");
            return false;
        } else {
            var url = window.URL.createObjectURL($(e)[0].files[0]);
            var $this = e;
            var data = new FormData();
            var file = $this.get(0).files[0];
            data.append('uploadFile', $this.get(0).files[0]);
            $this.next().find("img").attr("src", url);
            $this.next().find("a").css("display", "block");
            $.ajax({
                url: '/jixiang-web-boss/file/upload',
                type: 'post',
                data: data,
                processData: false,
                contentType: false,
                async: false,
                success: function (result) {
                    if (result.status == SUCCESS) {
                        $("#img-" + id).val(result.data);
                    } else {
                        openDialog(result.info);
                    }

                    $this.get(0).value = "";
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    openDialog(errorThrown);
                }
            });
        }
    }


</script>

</body>
</html>
